package com.zjj.learn.designmodel.work.bridge;

import com.zjj.learn.designmodel.pattern.bridge.VideoFile;

public class Mac extends OperateSystem {


    @Override
    public void parseFile() {
        System.out.println(super.getName() + "要解析文件了");
        if (!super.getFileParsers().isEmpty()) {
            for (FileParser parser : super.getFileParsers()) {
                parser.parse();
            }
        }
        //单个解析器时解析代码
//        super.getFileParser().parse();
    }

    public Mac(FileParser ...fileParser) {
        super(fileParser);
        super.setName("Mac");
    }
}
